
import 'package:flutter/material.dart';
import 'package:library_base/log/fb_log.dart';

final RouteObserver<PageRoute> routeObserver = RouteObserver();

class AppAnalysis extends NavigatorObserver {

  @override
  void didPush(Route<dynamic> route, Route<dynamic>? previousRoute) {
    logger.i('AppAnalysis -> didPush()');
  }

  @override
  void didPop(Route<dynamic> route, Route<dynamic>? previousRoute) {
    logger.i('AppAnalysis -> didPop()');
  }

  @override
  void didReplace({Route<dynamic>? newRoute, Route<dynamic>? oldRoute}) {
    logger.i('AppAnalysis -> didReplace()');
  }

  @override
  void didStopUserGesture() {
    logger.i('AppAnalysis -> didStopUserGesture()');
  }

  @override
  void didStartUserGesture(Route<dynamic> route, Route<dynamic>? previousRoute) {
    logger.e('AppAnalysis -> didStartUserGesture()');
  }

  @override
  void didRemove(Route<dynamic> route, Route<dynamic>? previousRoute) {
    logger.i('AppAnalysis -> didRemove()');
  }

}